]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
messageTray: Allow dwell to work in the overview
authorAdel Gadllah <adel.gadllah@gmail.com>
Sun, 17 Feb 2013 19:13:46 +0000 (20:13 +0100)
committerAdel Gadllah <adel.gadllah@gmail.com>
Sun, 17 Feb 2013 19:16:52 +0000 (20:16 +0100)
Special case the overview in _trayDwellTimeout because the
tray is hidden by default in the overview now.

js/ui/messageTray.js

index 1e2c0784a4d862cc4b61168e015e31f065ad1b5e..c1ab9ea19636c791084f0a624c8db5bd1f0a341f 100644 (file)
@@ -1850,7 +1850,10 @@ const MessageTray = new Lang.Class({
     _trayDwellTimeout: function() {
         this._trayDwellTimeoutId = 0;
 
-        if (Main.modalCount > 0)
+        // We don't want to open the tray when a modal dialog
+        // is up, so we check the modal count for that. When we are in the
+        // overview we have to take the overview's modal push into account
+        if (Main.modalCount > (Main.overview.visible ? 1 : 0))
             return false;
 
         // If the user interacted with the focus window since we started the tray